package com.mycompany.oj.service;

import com.mycompany.oj.entity.JsonResult;
import com.mycompany.oj.entity.studentInformation;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 *
 * @author wucy
 */
public interface LoginService {
    //登录

    public List<String> loginService(String username, String password);

    //忘记密码
    public JsonResult forgetService(String username, String newpassword);

    //注册
    public boolean registerService(String username, String password);

    //注册个人信息
    public boolean registerInforamtionService(studentInformation student_information, String cellphone);

    //获取头像
    public JsonResult getPictureService(String username);

    //设置头像
    public boolean setPictureService(String username, MultipartFile file);
    //获取短信验证码

    public JsonResult phoneMa(String phone) throws Exception;
}
